package com.cdh.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdh.edu.entity.Chapter;
import com.cdh.edu.entity.vo.ChapterVo;

import java.util.List;

/**
 * @author cdh
 * @since 2020-10-20
 */
public interface ChapterService extends IService<Chapter> {
    /**
     * 课程大纲列表,根据课程ID进行查询
     * @param courseId
     * @return
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 根据ID删除章节
     * @param chapterId
     * @return
     */
    boolean deleteChapterById(String chapterId);

}
